package com.cn.jasyptdbtwo.util;

import org.jasypt.util.text.BasicTextEncryptor;

/**
 * TODO 生成 jasypt 加密后的数据
 *
 * @ClassName Password
 * @Author xiaojiang
 * @Date 2021/9/23 下午 13:39
 */
public class Password {

    public static void main(String[] args) {

        BasicTextEncryptor textEncryptor = new BasicTextEncryptor();
        textEncryptor.setPassword("admin");

        String passWord = textEncryptor.encrypt("root");

        System.out.println("passWord==="+passWord);

        String decrypt = textEncryptor.decrypt("sTj2kNlUBLQgo8EIlBdEvQ==");
        System.out.println(decrypt);


    }



}
